package com.bolingcavalry.crm.contacts.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dto.CustomerContactDTO;
import com.vo.AfterSales.AfterSalesVO;
import com.vo.CustomerContactVO;
import com.vo.ServiceProblemVO;

import java.util.List;

public interface ContactsService {
    boolean add(CustomerContactDTO customerContactDTO);

    boolean batchDelete(List<Long> ids);

    boolean update(CustomerContactDTO customerContactDTO);

    CustomerContactVO get(Long id);

    IPage<CustomerContactVO> list(Integer pageNum,Integer pageSize,String customerCompanyName, String fullName, String phoneNumber);

    List<CustomerContactVO> listByCustomerId(Long customerId);

    boolean setPrimary(Long id);

    List<CustomerContactVO> listByCustomerCompanyId(Long id);

    List<AfterSalesVO> listByCustomerCompanyIdAfterSales(Long id);

    List<ServiceProblemVO> listByCustomerCompanyIdServiceProblem(Long id);
}
